from OneDjango.settings import TIME_ZONE
from django.db import models
from django.utils.translation import check_for_language

# Create your models here.

class TwoRegister(models.Model):
    id = models.AutoField(primary_key=True)
    username = models.CharField(max_length=10)
    passwd = models.CharField(max_length=30)
    checkpasswd = models.CharField(max_length=30)
    mail = models.EmailField(max_length=50,default='xx@aa.com')
    logintime = models.DateField(auto_now=True)
    address = models.CharField(max_length=50,default="江苏")
    registertime = models.DateTimeField(auto_now_add=True)
    
    class Meta:
        db_table = 'TwoRegister'
        managed = True
        verbose_name = 'TwoRegister'
        verbose_name_plural = verbose_name

    def __str__(self) -> str:
        return self.username


